<?php

include_once('simple_html_dom.php');
$goods_id = '03140714143403208122';
$url = "http://shop.cgbchina.com.cn/mall/goods/$goods_id?itemCode=$goods_id";
$res = file_get_contents($url);
$html = str_get_html($res);
$class = $html->find('div.icon-item-state',0)->class;
$res = strpos($class,'icon-sold-out');
if($res == false){
    //TODO 发送短信
}